From: David Edmundson Date: Thu, 28 Jun 2018 10:12:59 +0000 (+0100) Subject: wayland: Reset server decoration interface on window mapping X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~34^2~10^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=b0bfe606aa9c35bec97b018baf13322c5ac963da;p=gtk%2B3.0.git wayland: Reset server decoration interface on window mapping The wl_surface is destroyed and recreated when the window is mapped/unmapped. As we have a new wl_surface we need to create a new server_decoration object for that surface. --- diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index d651373267..eba0f37f97 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -2938,11 +2938,13 @@ gdk_wayland_window_map (GdkWindow *window) else { gdk_wayland_window_create_xdg_toplevel (window); + gdk_wayland_window_announce_decoration_mode (window); } } else { gdk_wayland_window_create_xdg_toplevel (window); + gdk_wayland_window_announce_decoration_mode (window); } impl->mapped = TRUE;